package org.example;

import org.example.entity.Image;
import org.example.mapper.ImageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImageService {
    @Autowired
    private ImageMapper imageMapper;
    public Image getOne(Integer id){
        return imageMapper.getOne(id);
    }
    public List<Image> getAll(){
        return imageMapper.getAll();
    }
    public Integer insert(Image image){
        return imageMapper.insert(image);
    }

}
